#pragma once

#include "../../protocol_files/rpc/rpc_interface_generated.hh"

class RPCSample : public ISample {
    int count;
public:
    RPCSample() {
        count = 0;
    }
    virtual void echo(const DummyReq& req, DummyAck& ack) override {
        ack.set_greetings("ok");
        count++;
        if (!(count % 1000)) {
            verblog << "RPC:" << count << endlog;
        }
    }
    virtual void echo1(const DummyReq& req, DummyAck& ack) override {
        ack.set_greetings("ok");
    }
};
